﻿using UnityEngine;
using System.Collections;

public class Obstacles_Random : MonoBehaviour {

    private float randomY;


	void Start () {
        RondomWith();

	}
	
	void Update () {
	
	}
    public void RondomWith()
    {
        randomY = Random.Range(-0.15f,0.2f);
        Debug.Log(randomY);
        this.transform.localPosition = new Vector3(this.transform.localPosition.x,randomY,this.transform .localPosition.z);

    }
}
